package com.nyj.dao;

import com.nyj.pojo.User;

import java.util.List;

/**
 * @author niuyj
 * @date 2020/5/6 2:02
 * @description
 */
public interface UserMapper {

    //查询所有用户
    public List<User> selectList();

    //按条件查询
    public User selectOne(User user);

    //新增用户
    int add(User user);
    //编辑用户
    int update(User user);
    //删除用户
    int delete(User user);
}
